import { i18nRender } from '@/locales'
// 用户银行表
export const UserBankTableColumns = [
  {
    title: i18nRender('all.autotext334'),
    dataIndex: 'id',
    scopedSlots: { customRender: 'id' }
  },
  {
    title: i18nRender('all.autotext496'),
    dataIndex: 'bankType',
    scopedSlots: { customRender: 'bankType' }
  },
  {
    title: i18nRender('all.autotext497'),
    dataIndex: 'bankName'
  },
  {
    title: i18nRender('all.autotext508'),
    dataIndex: 'bankAccount'
  },
  {
    title: i18nRender('all.autotext1039'),
    dataIndex: 'bankCardNo'
  },
  {
    title: i18nRender('all.autotext674'),
    dataIndex: 'defaultCard',
    customRender: (value) => {
      if (+value === 1) return i18nRender('all.autotext279')
      if (+value === 0) return i18nRender('all.autotext957')
      return ''
    }
  }, {
    title: i18nRender('all.autotext187'),
    dataIndex: 'action',
    width: 200,
    scopedSlots: { customRender: 'action' }
  }
]
